import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index'
import home from '@/components/home'
import Register from '@/components/Register'
import Login from '@/components/Login'
import aaa from '@/components/aaa'
import dingding_back from '@/components/dingding_back'
import gitee_back from '@/components/gitee_back'
import UpdateUserInfo from '@/components/UpdateUserInfo'
import workAdministration from '@/components/workAdministration'
import showWork from '@/components/showWork'
import updateWork from '@/components/updateWork'
import addWork from '@/components/addWork'
import task from '@/components/task'
import approvalTask from '@/components/approvalTask'
import leftmenu from '@/components/leftmenu'
import myWork from '@/components/myWork'
import myWorkInfo from '@/components/myWorkInfo'
import headmenu from '@/components/headmenu'
import messageinfo from '@/components/messageinfo'
import chatroom from '@/components/chatroom'
import except from '@/components/except'
import ranking from '@/components/ranking'
// import addsp from '@/components/addsp'

Vue.use(Router)

var routes = [
        {
          path:'/leftmenu',
          name:'leftmenu',
          component:leftmenu
        },
        {
          path:'/aaa',
          name:'aaa',
          component:aaa
        },
        {
          path:'/',
          name:'index',
          component:index
        },
        {
          path:'/home',
          name:'home',
          component:home
        },
        {
          path:'/register',
          name:'Register',
          component:Register
        },
        {
          path:'/login',
          name:'Login',
          component:Login
        },
        {
          path:'/dingding_back',
          name:'dingding_back',
          component:dingding_back
        },
        {
          path:'/gitee_back',
          name:'gitee_back',
          component:gitee_back
        },
        {
          path:'/updateuser',
          name:'UpdateUserInfo',
          component:UpdateUserInfo
        },
        {
          path:'/workadministration',
          name:'workAdministration',
          component:workAdministration
        },
        {
          path:'/showwork',
          name:'showWork',
          component:showWork
        },
        {
          path:'/updatework',
          name:'updateWork',
          component:updateWork
        },
        {
          path:'/addwork',
          name:'addWork',
          component:addWork
        },
        {
          path:'/task',
          name:'task',
          component:task
        },
        {
          path:'/approvaltask',
          name:'approvalTask',
          component:approvalTask
        },
        {
          path:'/mywork',
          name:'myWork',
          component:myWork
        },
        {
          path:'/myworkinfo',
          name:'myWorkInfo',
          component:myWorkInfo
        },
        {
          path:'/headmenu',
          name:'headmenu',
          component:headmenu
        },
        {
          path:'/messageinfo',
          name:'messageinfo',
          component:messageinfo
        },
        {
          path:'/chatroom',
          name:'chatroom',
          component:chatroom
        },
        {
          path:'/except',
          name:'except',
          component:except
        },
        {
          path:'/ranking',
          name:'ranking',
          component:ranking
        },
        // {
        //   path:'/addsp',
        //   name:'addsp',
        //   component:addsp
        // },
        
]

export default new Router({
  routes:routes,
  mode:'history'   /*hash*/
})
